package com.qymerge.manage.base.dto;

import com.qymerge.manage.base.ro.OrganizationalStructureRO;
import com.qymerge.manage.system.ro.SysMenuRO;
import lombok.Data;

import java.util.List;

/**
 * Desc
 * User cong.li
 * Date 2017/4/5
 * Time 10:48
 */
@Data
public class OrganizationalStructureDTO extends OrganizationalStructureRO implements Comparable<OrganizationalStructureDTO> {

    private List<OrganizationalStructureDTO> children;      // 子菜单

    @Override
    public int compareTo(OrganizationalStructureDTO o) {
        return Long.valueOf(this.getSort()).compareTo(o.getSort());
    }


}
